package com.dragon.pear.modules.sample.web.model.params.update;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-10 04:10
 * Use for: 订单商品 数据更新请求参数
 * Explain:
 * 
 */
@Schema(description = "订单商品 数据更新参数")
public class SmpOrderGoodsUpdateParam {
    @Schema(description = "", example = "1")
    private long id;
    @Schema(description = "", example = "1")
    private long code;
    @Schema(description = "", example = "字符串")
    private String createdBy;
    @Schema(description = "", example = "1")
    private long createdOn;
    @Schema(description = "", example = "1")
    private int isDeleted;
    @Schema(description = "", example = "字符串")
    private String updatedBy;
    @Schema(description = "", example = "1")
    private long updatedOn;
    @Schema(description = "", example = "1")
    private Integer count;
    @Schema(description = "", example = "1")
    private Long goodsCode;
    @Schema(description = "", example = "1")
    private Long orderCode;
    @Schema(description = "", example = "1")
    private Double totalPrice;

    // 无参构造方法
    public SmpOrderGoodsUpdateParam() {
    }

    // 全参数构造方法
    public SmpOrderGoodsUpdateParam(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, Integer count, Long goodsCode, Long orderCode, Double totalPrice) {
        this.id = id;
        this.code = code;
        this.createdBy = createdBy;
        this.createdOn = createdOn;
        this.isDeleted = isDeleted;
        this.updatedBy = updatedBy;
        this.updatedOn = updatedOn;
        this.count = count;
        this.goodsCode = goodsCode;
        this.orderCode = orderCode;
        this.totalPrice = totalPrice;
    }

    // 全参数create生成器
    public static SmpOrderGoodsUpdateParam create(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, Integer count, Long goodsCode, Long orderCode, Double totalPrice) {
        return new SmpOrderGoodsUpdateParam(id, code, createdBy, createdOn, isDeleted, updatedBy, updatedOn, count, goodsCode, orderCode, totalPrice);
    }

    // 全参数of生成器
    public static SmpOrderGoodsUpdateParam of(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, Integer count, Long goodsCode, Long orderCode, Double totalPrice) {
        return new SmpOrderGoodsUpdateParam(id, code, createdBy, createdOn, isDeleted, updatedBy, updatedOn, count, goodsCode, orderCode, totalPrice);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public SmpOrderGoodsUpdateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public SmpOrderGoodsUpdateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public SmpOrderGoodsUpdateParam setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
        return this;
    }

    public long getCreatedOn() {
        return createdOn;
    }

    public SmpOrderGoodsUpdateParam setCreatedOn(long createdOn) {
        this.createdOn = createdOn;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public SmpOrderGoodsUpdateParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public SmpOrderGoodsUpdateParam setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
        return this;
    }

    public long getUpdatedOn() {
        return updatedOn;
    }

    public SmpOrderGoodsUpdateParam setUpdatedOn(long updatedOn) {
        this.updatedOn = updatedOn;
        return this;
    }

    public Integer getCount() {
        return count;
    }

    public SmpOrderGoodsUpdateParam setCount(Integer count) {
        this.count = count;
        return this;
    }

    public Long getGoodsCode() {
        return goodsCode;
    }

    public SmpOrderGoodsUpdateParam setGoodsCode(Long goodsCode) {
        this.goodsCode = goodsCode;
        return this;
    }

    public Long getOrderCode() {
        return orderCode;
    }

    public SmpOrderGoodsUpdateParam setOrderCode(Long orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public SmpOrderGoodsUpdateParam setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
        return this;
    }

    // endregion Getter和Setter方法
}
